<script setup lang="ts">
import { useWindowSize } from '@vueuse/core';
import zhCn from 'element-plus/dist/locale/zh-cn.mjs';
const { width } = useWindowSize();
</script>

<template>
  <el-config-provider
    :locale="zhCn"
    :message="{ max: 1 }"
    :size="width > 1920 ? 'default' : 'small'"
  >
    <router-view />
  </el-config-provider>
</template>
